﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Threading;
using HisoftSmart.Client.AutomationClient.UIAutomationServiceReference;

namespace HisoftSmart.Client.AutomationClient.Actions
{
    public class SleepAction : ActionBase
    {
        public SleepAction(string name, string _params)
            : base(name, _params)
        {
        }

        protected override void DoImpl()
        {
            Thread.Sleep(int.Parse(this.Params));
            SendSuccessResult();
        }
    }
}
